package com.zhao.wechat.remote;

import com.alibaba.fastjson2.JSONObject;
import com.zhao.wechat.domain.ApiResponse;
import com.zhao.wechat.remote.param.BaiduWeatherParam;
import netscape.javascript.JSObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;


/**
 * 第三方接口：请求百度天气
 */
@FeignClient(value = "BaiduWeatherRemoteClient",url = "${baidu.server}")
public interface BaiduWeatherRemoteClient {


	/**
	 * 查询每日天气
	 * @param baiduWeatherParam
	 * @return
	 */
	@GetMapping(value = "/weather/v1/",
			consumes = {MediaType.APPLICATION_JSON_VALUE},
			produces = {MediaType.APPLICATION_JSON_VALUE}
	)
	String queryWeather(@SpringQueryMap BaiduWeatherParam baiduWeatherParam);
}
